package com.mall.db.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mall.db.domain.Courier;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author LSM
 * @since 2021-09-26
 */
public interface CourierDao extends BaseMapper<Courier> {

    @Insert("insert into t_courier (number, company) values (#{number}, #{company})")
    @Options(useGeneratedKeys=true, keyProperty="id", keyColumn="id")
    Integer addOne(Courier courier);
}
